import socket

cli = socket.socket()
host = socket.gethostname()
cli.connect((host,3883))
cli.send(bytearray('i am client','utf-8'))
print(cli.recv(1024))
